import PROMPTS_TEMPLATE from '../template/json/prompts-zh-hans.json';


export const ZhHansMsg = {
    MIXLY_LIB_ARDUINO_LLM_INIT: '初始化',
    MIXLY_LIB_ARDUINO_LLM_CHATBOT: '对话机器人',
    MIXLY_LIB_ARDUINO_LLM_API_KEY: 'API私钥',
    MIXLY_LIB_ARDUINO_LLM_MODEL: '模型',
    MIXLY_LIB_ARDUINO_LLM_SYSTEM_PROMPT: '系统提示词',
    MIXLY_LIB_ARDUINO_LLM_SET_API_KEY: '设置API私钥',
    MIXLY_LIB_ARDUINO_LLM_SET_TIMEOUT: '设置请求超时时间',
    MIXLY_LIB_ARDUINO_LLM_SET_MAX_RETRIES: '设置最大重试次数',
    MIXLY_LIB_ARDUINO_LLM_SET_SYSTEM_PROMPT: '设置系统提示词',
    MIXLY_LIB_ARDUINO_LLM_SELECT_MODEL: '选择模型',
    MIXLY_LIB_ARDUINO_LLM_MODEL_PROVIDER: '模型提供商',
    MIXLY_LIB_ARDUINO_LLM_MODEL_NAME: '模型名',
    MIXLY_LIB_ARDUINO_LLM_ENABLE_HISTORY_MESSAGES: '保留历史对话记录',
    MIXLY_LIB_ARDUINO_LLM_SET_HISTORY_MESSAGES_NUM: '设置历史对话记录最大保留数量',
    MIXLY_LIB_ARDUINO_LLM_SET_CUSTOM_URL: '自定义对话API地址',
    MIXLY_LIB_ARDUINO_LLM_CHAT: '开启对话',
    MIXLY_LIB_ARDUINO_LLM_USER_PROMPT: '用户提示词',
    MIXLY_LIB_ARDUINO_LLM_MAX_TOKENS: '生成Token上限',
    MIXLY_LIB_ARDUINO_LLM_CHAT_STREAM: '开启对话 (流式输出)',
    MIXLY_LIB_ARDUINO_LLM_CONTENT_CALLBACK: '结果输出回调',
    MIXLY_LIB_ARDUINO_LLM_REASONING_CONTENT_CALLBACK: '思维链输出回调',
    MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE: [],
    MIXLY_LIB_ARDUINO_LLM_PROVIDERS: [
        ['DeepSeek', 'DeepSeek'],
        ['ChatGPT', 'ChatGPT'],
        ['阿里云百炼', 'AliyunBaiLian'],
        ['百川智能', 'BaiChuanAI'],
        ['零一万物', 'LingYiWanWu'],
        ['月之暗面', 'MoonShot'],
        ['硅基流动', 'SiliconFlow'],
        ['腾讯混元', 'TencentHunYuan'],
        ['字节火山方舟', 'VolcEngine'],
        ['自定义', 'Custom']
    ],
    MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE_MAP: {}
};

for (let item of PROMPTS_TEMPLATE) {
    ZhHansMsg.MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE.push([item['act'], item['act']]);
    ZhHansMsg.MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE_MAP[item['act']] = {
        name: item.cmd.toUpperCase(),
        prompt: item['prompt']
    };
}

export const ZhHansCatgories = {
    'mixly-lib-arduino-llm': '对话机器人'
};